const getSelectedKeysArr = (row: any, keysArr: any[] = []) => {
  if (row.children) {
    row.children.forEach((item: any) => {
      if (item.level === 2) {
        keysArr.push(item.id)
      }
      getSelectedKeysArr(item, keysArr)
    })
  }
  return keysArr
}

export default getSelectedKeysArr